<?php
	class dathang_chitietbs
	{
		public $MaChiTiet	= 0;
		public $MaGioHang	= 0;
		public $MaSanPham	= 0;
		public $SoLuong		= 0;
		
		public function GetList($order = '', $start = 0, $num = 30, $all = 0)
		{
			$db = new dathang_chitietdb();
			return $db->GetList($this->MaChiTiet, $this->MaDatHang, $order, $start, $num, $all);
		}
		
		public function Add()
		{
			$db = new dathang_chitietdb();
			return $db->Add($this->MaGioHang, $this->MaSanPham, $this->SoLuong);
		}
		
		public function Delete()
		{
			$db = new dathang_chitietdb();
			return $db->Delete($this->MaChiTiet);
		}
		
		public function CountList()
		{
			$db = new dathang_chitietdb();
			return $db->CountList();
		}
	}
?>